<%--
  Created by IntelliJ IDEA.
  User: nguyentrongduy
  Date: 25/7/12
  Time: 10:58 AM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <meta name="layout" content="main">
    <title></title>
</head>
<body>

        <g:render template="/sanPham/createEditProduct/sanPhamHeader" model="['step':3]"></g:render>


        <g:if test="${flash.message}">
            <div class="message" role="status">${flash.message}</div>
        </g:if>

        <g:hasErrors bean="${sanPham?.congNghe}">

            <ul class="errors" role="alert">
                <g:eachError bean="${sanPham?.congNghe}" var="error">
                    <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
                </g:eachError>
            </ul>
        </g:hasErrors>

        <g:form>

            <g:render template="../congNghe/form" model="['congNgheInstance':sanPham?.congNghe]"></g:render>

            <fieldset class="buttons marginTopMiddle">
                <div class="floatL">
                    <g:submitButton name="back" class="cancel" value="${message(code:'button.quaylai')}" />
                    <g:submitButton name="save" class="save" value="${message(code:'button.tieptuc')}" />
                </div>


                <div class="floatR marginRightStd">
                    <g:submitButton name="ketthuc" class="save" value="${message(code:'button.ketthuc')}" />
                </div>
                <div class="clear"></div>
            </fieldset>

        </g:form>

</body>
</html>